/* Author : Putri Andita R
 * 		    091511059
 * Proyek 4*/


package jtk.project4.fleet.field;

import java.awt.FlowLayout;


import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.MemoField;
import nl.coderight.jazz.form.field.SelectField;

public class PMScheduleField extends GroupControl{	
	
	private MemoField equipmenttextArea;
	private SelectField pmField;
			
	
	public PMScheduleField(String bindID)
	{
		setTitle("header.pmSchedule");
		setBindID(bindID);
		createFields();
		createLayout();		
	}	
	
	private void createFields() 
	{
		pmField = new SelectField("domains","domain");
		
		equipmenttextArea = new MemoField();
		equipmenttextArea.setRows(10);
	}
	
	private void createLayout() 
	{
		// TODO Auto-generated methodstub
		setLayout(new FormLayout())
		.addLabel("label.pmSchedule: ")		.addField(pmField,Resize.HORIZONTAL)
		.addRow()		
		.addLabel("label.equipmentinSchedule")			.addField(equipmenttextArea)
		.addRow()
		.addLabel("(Use Ctrl-Click and/or Shift-Click to multi" )
		.addRow()
		.addLabel("select equipment for multiple assignments")
		;
	}
}
		
	
	
	